package com.ruoyi.locksApi.service;

import com.ruoyi.locksApi.domain.WechatMiniProgramApiUser;

public interface IWechatMiniProgramApiService {
    
    WechatMiniProgramApiUser getByOpenId(String openid);
    
    WechatMiniProgramApiUser getByUnionId(String unionid);
    
    boolean save(WechatMiniProgramApiUser user);
    
    boolean update(WechatMiniProgramApiUser user);
    
    boolean updatePhone(String openid, String phone);
    
    /**
     * 处理微信登录
     */
    WechatMiniProgramApiUser handleWechatLogin(String code, String encryptedData, String iv);
    
    /**
     * 处理手机号绑定
     */
    boolean handlePhoneBinding(String openid, String code);
} 